﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using IrrlichtLime;
using IrrlichtLime.Core;
using IrrlichtLime.Scene;

namespace BillardPHS4700 {
    class TopDownCamera : ICamera {

        public void Initialize(CameraSceneNode node) {
            Node = node;
            Node.Target = new Vector3Df(0, 0, 0);
            Node.Position = new Vector3Df(0f, -1f, Constants.TableHeight + 120f);
            Node.UpVector = new Vector3Df(0, 0, 1);
        }

        public bool HandleEvent(Event eEvent) {
            // this camera doesn't move, so we do nothing
            return false;
        }

        public void Update() {
            // nothing to do here either
        }

        public CameraSceneNode Node { get; set; }
    }
}
